package com.sensetime.bi.senselink.server.rtsp.session;

import com.sensetime.bi.senselink.server.entity.MediaSource;
import com.sensetime.bi.senselink.server.entity.Player;
import io.netty.channel.group.ChannelGroup;
import io.netty.channel.group.DefaultChannelGroup;
import io.netty.util.concurrent.GlobalEventExecutor;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class Session {
    // RTSP 客户端信息
    private Player player;

    // TODO：预留， 同一种媒体流共享
    private static ChannelGroup playerChannelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);

    // 媒体源
    private MediaSource mediaSource;

    private String sessionId;
}
